package com.zmj.sy.mom.srv.aps.bean.vo.nest.newNest;

import cn.hutool.core.date.DateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.List;

/**
 * @author hd
 * @date 2021/11/19
 * @desc 套料系统领料单obj xml
 */
@Getter
@Setter
@ToString
@JsonIgnoreProperties(ignoreUnknown = true)
@JacksonXmlRootElement(localName = "Data")
public class NestPickingHeader implements Serializable {
    // 领料单号
    @JacksonXmlProperty(localName = "PickinglistNo")
    private Integer pickingListNo;
    @JacksonXmlProperty(localName = "Info")
    private String info;
    // 希望送货日期
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JacksonXmlProperty(localName = "WantedDeliveryDate")
    private DateTime wantedDeliveryDate;
    @JacksonXmlElementWrapper(useWrapping = false)
    @JacksonXmlProperty(localName = "PicklistLine")
    private List<NestPlateInfo> nestPlateInfoList;
}
